package com.situ.staff.dao;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.situ.staff.bean.Work;

public interface WorkDao {
	/**
	 * 添加
	 */
	int insert(Work work);

	// 批量插入
	int batchInsert(@Param("project_id") Integer project_id, @Param("staff_ids") List<Integer> staff_ids);

	/**
	 * 删除 根据项目删除
	 */
	int deleteByProjectId(Integer project_id);

	/**
	 * 查询
	 */
	List<Work> selectByProjectId(Integer project_id);

	//
	int batchDeleteByProjectIds(@Param("ids") ArrayList<Integer> ids);

}
